/*cftpclient的测试案例*/
#include "./_ftp.h"
using namespace idc;

int main(int argc,char *argv[])
{
    cftpclient ftp;
    if(ftp.login(argv[1],argv[2],argv[3])==false)
    {
        perror("ftp.login() failed.");
        return -1;
    }

    cout<<"ftp.login() success."<<endl;

    if (ftp.get("test.cpp","/tmp/data/test.cpp")==false)
    {
        perror("ftp.get() failed.");
        printf("%s\n",ftp.response());
        return -1;
    }
    return 0;
}